package com.api.demo.dto.business;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @description: API 默认参数
 * @author: yanming
 * @createDate: 2022/08/19 11:32
 */
@Data
@ApiModel(description = "api参数")
public class ApiDTO implements Serializable {

    @ApiModelProperty(value = "时间戳" ,required = true)
    @NotNull(message = "时间戳不能为空")
    private Long timestamp;

    @ApiModelProperty(value = "代理商id",required = true)
    @NotNull(message = "代理商id不能为空")
    private Long agentId;

    @ApiModelProperty(value = "sign",required = true)
    @NotBlank(message = "sign不能为空")
    private String sign;
}
